#! /bin/sh
#
# $Id$
#

LN="/bin/ln"
SHELLS="${PKG_DESTDIR-}/etc/shells"

if [ $2 != "POST-INSTALL" ]; then
    exit 0
fi

if [ -f ${LOCALBASE}/bin/csShell ]; then
    ${LN} -fs ${LOCALBASE}/bin/csShell /bin/csShell
fi

if ! grep -qs -- "^/bin/csShell\$" $SHELLS; then
    echo "/bin/csShell" >> "${SHELLS}"
fi
